﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace Options.IBClient.Component
{
     [Serializable()]
    public class MarketData
    {
        #region Private Variables

        private int id;
        private string symbol;
        private DateTime dateAdded;
        private string tickType;
        private decimal tickPrice;
        private int minStrikePrice;
        private int maxStrikePrice;
        #endregion

        #region Constructor
        public MarketData()
        {
            symbol = string.Empty;
            dateAdded = DateTime.Now;;
            tickType = string.Empty;
            tickPrice = 0;
        }
        #endregion

        #region Properties
        public int MarketDataId
        {
            get { return id; }
            set { id = value; }
        }

        public string Symbol
        {
            get { return symbol; }
            set { symbol = value; }
        }

        public DateTime DateAdded
        {
            get { return dateAdded; }
            set {  dateAdded = value; }
        }

        public string TickType
        {
            get { return tickType; }
            set { tickType = value; }
        }

        public decimal TickPrice
        {
            get { return tickPrice; }
            set { tickPrice = value; }
        }


        public int MinStrikePrice
        {
            get { return minStrikePrice; }
            set { minStrikePrice = value; }
        }


        public int MaxStrikePrice
        {
            get { return maxStrikePrice; }
            set { maxStrikePrice = value; }
        }
        #endregion
    }
}
